import service from "@/utils/request.js";

export const logApi = {
   /* list() {
        return service.get('/log/list');
    },*/
    list(logQuery){
        return service.get('/log/list',{params:logQuery});
    },
    deleteOne(id){
        return service.put(`/log/deleteOne/${id}`);
    },
    deleteAll(ids) {
        return service.put(`/log/deleteAll/${ids}`);
    },
    add(log) {
        return service.put(`/log/add`, log)
    },
    update(log){
        return service.put('/log/update',log)
    },
    getById(id){
        return service.get(`log/getById/${id}`)
    }
}